/******************************************************************************
 * SVN­Version­Information:
 * ­­­­­­­­­­­­­­­­­­­­­­­­---------------------
 * $LastChangedRevision: 133 $
 * $LastChangedBy: MV $
 * $LastChangedDate: 2009-06-25 05:02:32 +0200 (Thu, 25 Jun 2009) $
 * $HeadURL: svn://lvis10.fbm.fht-stuttgart.de/common/Common/src/de/hft_stuttgart/botwar/common/models/ArmamentInfo.java $
 ******************************************************************************/
package de.hft_stuttgart.botwar.common.models;

import java.io.Serializable;

/**
 * @author pmv-mail@gmx.de, c.a.duevel@gmail.com
 */
public class ArmamentInfo implements Serializable {

    private final int LEVEL_RANK,  COST,  DISTANCE,  FIRE_POWER,  WEIGHT;
    private final String NAME;

    /**
     * Creates new armament info.
     * @param levelRank rank of the level of the armament.
     * @param cost price of the armament.
     * @param distance of the shoot.
     * @param firePower power of the gun.
     * @param weight of the gun
     * @param name the armament is called
     */
    public ArmamentInfo(final int levelRank, final int cost, final int distance,
            final int firePower, final int weight, final String name) {

        this.LEVEL_RANK = levelRank;
        this.COST = cost;
        this.DISTANCE = distance;
        this.FIRE_POWER = firePower;
        this.WEIGHT = weight;
        this.NAME = name;
    }

    /**
     * Returns the level rank.
     * @return needed level for this weapon
     */
    public int getLevelRank() {
        return LEVEL_RANK;
    }

    /**
     * Returns the price.
     * @return cost of this weapon
     */
    public int getCost() {
        return COST;
    }

    /**
     * Returns the distance.
     * @return maximum fire distance of this weapon
     */
    public int getDistance() {
        return DISTANCE;
    }

    /**
     * Returns the fire power.
     * @return firePower
     */
    public int getFirePower() {
        return FIRE_POWER;
    }

    /**
     * Returns the name of the armament.
     * @return name
     */
    public String getName() {
        return NAME;
    }

    /**
     * Returns the weight of the armament.
     * @return weight of this weapon
     */
    public int getWeight() {
        return WEIGHT;
    }
}
